package com.sf.fy.uav.common.enums;

/**
 * @author LTQ
 */
public enum PayChannelEnum {
    /**
     *
     */

    sfpay("sfpay", "顺手付支付"),
    wxpay("wxpay", "微信支付"),
    alipay("alipay", "支付宝支付"),
    ccbpay("ccbpay", "龙支付"),
    cloudpay("cloudpay", "云闪付"),
    applepay("applepay", "苹果支付"),
    huaweipay("huaweipay", "华为支付"),
    dkkjpay("dkkjpay", "中信支付"),
    msp_pay("msp_pay", "月结平台支付"),;


    private String code;
    private String name;


    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    PayChannelEnum(String code, String name) {
        this.code = code;
        this.name = name;
    }

    public static String getName(String value) {
        for (PayChannelEnum ele : values()) {
            if (ele.getCode().equals(value)) {
                return ele.getName();
            }
        }
        return null;
    }
}
